package com.efast.cafe.portal.remote.common;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.cafe.framework.feign.constant.FeignConstant;
import com.efast.cafe.portal.bean.common.ParameterResultBean;
import com.efast.cafe.portal.entity.base.PortalBaseParameter;

/******************************************************************************
 * @File name : ParameterService.java
 * 
 * @Author : fxm
 * 
 * @Date : 2016-7-8
 * 
 * @Copyright Notice: Copyright (c) 2016 Efast Serv. All Rights Reserved. This
 *            software is published under the terms of the Efast Software
 *            License version 1.0, a copy of which has been included with this
 *            distribution in the LICENSE.txt file.
 * 
 *            ------------------------------------------------------------------
 *            ---------- Date Who Version Comments 2016-7-8 下午2:11:53 fxm 1.0
 *            Initial Version
 *****************************************************************************/
@FeignClient(name = "cafe.portal-service",path="/cafe.portal-service")
public interface ParameterService {

	/**
	 * 获取参数
	 * @Date : 2016-7-8
	 * @param paramKey 参数key
	 * @param moduleName 模块名称
	 * @return
	 */
	@RequestMapping(value = FeignConstant.Scope.FEIGN_SCOPE_PV_AUTH+"/portal/common/api_getParameter")
	public PortalBaseParameter api_getParameter(@RequestParam("paramKey")String paramKey,
			@RequestParam("moduleName")String moduleName);
	
	@RequestMapping(value = FeignConstant.Scope.FEIGN_SCOPE_PV_AUTH+"/portal/common/api_getParameter2",method=RequestMethod.POST)
	public PortalBaseParameter api_getParameter(@RequestParam("paramKey")String paramKey, @RequestParam("moduleName")String moduleName,@RequestParam("companyCode")String companyCode,@RequestParam("username")String username);
	
	
}
